<wxs src="../../utils/common.wxs" module="filter" />
<view class='shopMarket'>
	 <view class='marketItem' wx:for='{{goodsList.supplierCartVos}}' wx:for-item="company">
	 	 <view class='line'></view>
         <view class='company'>
         	<image class='logo' bindtap='selectCompony' data-id='0' data-comid='{{company.merchantId}}' wx:if='{{company.allSecletc}}'   src="../../image/address/xuanz.png" />
            <image class='logo' bindtap='selectCompony' data-id='1' data-comid='{{company.merchantId}}' wx:else   src="../../image/address/weixuanz.png" />
         	{{company.companyName}}
         </view>
         <view class='manjian' bindtap='turnActivity' data-code='{{company.merchantId}}' wx:if='{{company.diffDes}}'>{{company.diffDes}}<label>去凑单 
         <image class='logo'    src="../../image/address/right.png" />
         </label></view>
	 	
	 	<view  bindlongtap='chooseSelect' data-mid='{{company.merchantId}}' data-item='{{item}}' data-companyid='{{company.merchantId}}' class='goodsItem' wx:for='{{company.supplierCartParts}}' wx:for-item="item">
	 		 <image catchtap='chooseGoods' data-mid='{{company.merchantId}}' data-item='{{item}}' data-companyid='{{company.merchantId}}' class='logo' wx:if='{{item.status==1}}'   src="../../image/address/xuanz.png" />
	
             <image catchtap='chooseGoods' data-mid='{{company.merchantId}}' data-item='{{item}}' data-companyid='{{company.merchantId}}' class='logo' wx:if='{{item.status==0}}'   src="../../image/address/weixuanz.png" />
             <image class='goodsImg'    src="{{item.pic}}" />
	 		 <view class='name'>{{item.name}}</view>
	 		 <view class='typeName' wx:if='{{item.normsname}}'>  {{item.normsname}}</view>
	 		 <view class='activity' wx:if="{{item.activity}}">{{item.activity}}</view>
             <view class='money'>¥<label>{{filter.fitPrice(item.amount)}}</label></view>
	 		 <view class='sub_add' catchtap='#'>
                	<label data-item='{{item}}' data-companyid='{{company.merchantId}}' catchtap='addAction'>+</label>
                	<label>
                		<input type="number" name="" value='{{item.num}}' catchblur='changeNum' data-item='{{item}}' data-companyid='{{company.merchantId}}'/>
                	</label>

                	<label data-item='{{item}}' data-companyid='{{company.merchantId}}' catchtap='subAction'>-</label>
             </view>
	 	</view>
	 </view>
</view>
<view style='width: 750rpx;height: 116rpx;'></view>
<view class='bottom'>

	<view class='allSelect' bindtap='allectAction'>
		<image class='logo' wx:if='{{allChoose}}'  src="../../image/address/xuanz.png" />
		<image class='logo' wx:else  src="../../image/address/weixuanz.png" />
		<label>全选</label> 
	</view>

    <view class='money1'>总计: {{filter.fitPrice(goodsList.countAmount)}}</view>
    <view class='money2'>总额: {{filter.fitPrice(goodsList.allAmount)}}  优惠: {{filter.fitPrice(goodsList.preferentialAmount)}}</view>		
	<view class='subButton  {{isTrue?"select1":"nomal1"}}' bindtap='turn'>去结算</view>
</view>
